package com.youkeyi.ddy.cloud.common.api.application.business.crm.order;

import com.youkeyi.ddy.cloud.common.api.application.business.crm.order.dto.BusinessCustomerOrderDetailCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.order.dto.BusinessCustomerOrderListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.order.param.BusinessCustomerOrderCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.order.param.BusinessCustomerOrderDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.order.param.BusinessCustomerOrderListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.order.param.BusinessCustomerOrderUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletResponse;

/**
 * BusinessCustomerCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/customer/order/fallback")
public class BusinessCustomerOrderCloudServiceFallback implements BusinessCustomerOrderCloudService {

    @Override
    public BusinessCustomerOrderListCloudDto list(BusinessCustomerOrderListCloudParam param) {
        return new BusinessCustomerOrderListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public void exportXls(HttpServletResponse response, BusinessCustomerOrderListCloudParam param) {
        return;
    }

    @Override
    public BusinessCustomerOrderDetailCloudDto detail(String customerOrderPrimaryKey) {
        return new BusinessCustomerOrderDetailCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessCustomerOrderCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessCustomerOrderUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessCustomerOrderDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
